<?php

App::uses('AppModel', 'Model');

class Chart extends AppModel {

    var $useTable = 'chart'; // nome della tabella

	// static public $LEVEL = array("D" => "Debug", "I" => "Info", "W" => "Warning", "E" => "Error");
	
    public $hasMany = array(
        'Serie' => array(
            'className'     => 'Serie',
            'foreignKey'    => 'chart_id',
            'conditions'    => array('Serie.status' => SERIE_ENABLE),
            // 'order'         => 'Prestazione.dt_ins DESC',
            // 'limit'         => '5',
            'dependent'     => true
        )
	);
	        
}

?>